package com.dex4d.db;

import android.arch.persistence.room.Database;
import android.arch.persistence.room.RoomDatabase;

import com.dex4d.model.AssetModel;
import com.dex4d.ui.dapp.model.History;
import com.dex4d.ui.dapp.model.HistoryDao;
import com.dex4d.ui.main.model.TokenContract;
import com.dex4d.ui.main.model.TokenContractDao;
import com.dex4d.ui.wallet.model.WalletTx;
import com.dex4d.ui.wallet.model.WalletTxDao;

/**
 * Created by chengyuchun on 2018/10/30.
 */
@Database(entities = {AssetModel.class, TokenContract.class, WalletTx.class, History.class}, version = 4, exportSchema = false)
public abstract class AppDatabase extends RoomDatabase {
    public abstract AssetDao assetDao();

    public abstract TokenContractDao tokenContractDao();

    public abstract WalletTxDao txDao();

    public abstract HistoryDao browserDao();
}